			<script type="text/javascript">
				function frmSubmits(url, mode) {
					document.formNumber.action = url;
					document.formNumber['mode'].value = mode;
					document.formNumber.submit();
				}
			</script>
			<div class="centCont">
            	<div class="boxCent">
                	<div class="tt-boxCent">
                    	<p>Chi tiết giỏ hàng</p>
                        <div class="che-tt-cent"></div>
                    </div><!--tt-boxCent-->
                    <div class="cc-boxCent">
                    	<form name="formNumber" id="formNumber" action="" method="post">
                    	<input type="hidden" name="mode" value="" />
                    	<div class="chitietgiohang">
                        	<table cellspacing="0" cellpadding="0" width="100%" border="0" style="">
                    			<tbody>
                    				<?php if (count($this->errorArr) > 0) :?>
                    				<tr>
                    					<td colspan="6"><?php echo FunctionCommon::showAllErrorMessage($this->errorArr);?></td>
                    				</tr>
                    				<?php endif;?>
                    				<tr>
                    					<th class="border-top border-left" width="100" height="35"><p>Hình ảnh</p></th>
                    					<th class="border-top border-left"><p>Tên sản phẩm</p></th>
                    					<th class="border-top border-left" width="88"><p>Số lượng</p></th>
                    					<th class="border-top border-left" width="110"><p>Giá tiền</p></th>
                    					<th class="border-top border-left" width="110"><p>Tổng tiền</p></th>
                    					<th class="border-top border-left border-right" width="33"><p>Xóa</p></th>
                    				</tr>
                    				<?php 
                    				$tongTien=0;
                    				$totalGioHang = count($this->spGioHang);
                    				if ($totalGioHang > 0) :
                    				?>                         	
                            		<?php $i=0; foreach ($this->spGioHang as $giohang) :?>
                    				<tr>
                    					<td height="35" class="border-top border-left"><img width="98" src="<?php echo WEB_LINK . "/";?><?php echo FunctionCommon::getImage('img-the-min', $giohang['code']);?>" /></td>
                    					<td class="border-top border-left"><span style="margin-left:5px;"><?php echo $giohang['nameD'] . ($giohang['nameC'] !='' ? ' &rarr; ' . $giohang['nameC'] : '') . " &rarr; " . $giohang['nameS'];?></span></td>
                    					<td class="border-top border-left" align="center">
                    						<p style="float:left;margin-left:10px;">
	                    						<input size="2" type="text" name="<?php echo 'capnhatsoluong_'. $giohang['id'];?>" id="<?php echo 'capnhatsoluong_'. $giohang['id'];?>" value="<?php echo $giohang['soluong'];?>" style="height:20px;float:left;text-align:center;<?php if($this->erID == "capnhatsoluong_".$giohang['id']) {echo "border:1px solid #F00";}?>"/>
	                                            <a href="javascript:void(0)">
	                                                 <img style="float:left;margin-left:5px;margin-top:2px;" onclick="frmSubmits('<?php echo WEB_LINK . "/";?>product/them-gio-hang-<?php echo $this->danhmucid;?>-<?php echo $this->iddm;?>-<?php echo $this->subiddm;?>-<?php echo $giohang['id']; ?>#content', 'capnhat')" height="24" alt="" src="<?php echo WEB_LINK . "/";?>images/default/capnhat.png">
	                                            </a>
                                            </p>
                                        </td>
                    					<td class="border-top border-left" align="center"><?php echo $giohang['dongia'];?>.000 VNĐ</td>
                    					<td class="border-top border-left" align="center">
                    						<?php echo number_format($giohang['tongtien']);?>.000 VNĐ
                    						<input type="hidden" name="<?php echo "donGia_" . $giohang['id'];?>" id="<?php echo "donGia_" . $giohang['id'];?>" value="<?php echo $giohang['dongia'];?>">
                    					</td>
                    					<td class="border-top border-left border-right" align="center"><a href="javascript:void(0)" onclick="frmSubmits('<?php echo WEB_LINK . "/";?>product/them-gio-hang-<?php echo $this->danhmucid;?>-<?php echo $this->iddm;?>-<?php echo $this->subiddm;?>-<?php echo $giohang['id'];?>#content', 'delete')"><img src="<?php echo WEB_LINK . "/";?>images/thungrac.png" /></a></td>
                    				</tr>
                    				<?php $tongTien += $giohang['tongtien']; $i++; endforeach;?>
                                	<?php endif;?>
                                	<tr>
                                		<td height="40" class="border-top border-left border-right border-bottom" colspan="6" align="right"><span style="margin-right:5px;"><span style="font-weight:bold;">Tổng tiền :</span> <span style="font-weight:bold;color:#F00;"><?php echo number_format($tongTien);?>,000 VNĐ</span></span></td>
                                	</tr>
                    			</tbody>
                    		</table>
                    		<div class="nutnut">
                            	<ul>
                             		<?php if ($totalGioHang > 0) :?>
                             		<li class="thanhtoan"><a href="<?php echo WEB_LINK . "/";?>product/phuong-thuc-thanh-toan#content">Thanh toán</a></li>
                              		<?php endif;?>
                              		<li class="tieptuc"><a href="<?php echo WEB_LINK . "/";?>#content">Tiếp tục mua hàng</a></li>
                        		</ul>
                        	</div><!--nutnut-->
                            </div><!--cc-ctgh-->
                        </div><!--chitietgiohang-->
                        </form>
                    </div><!--cc-boxCent-->
                </div><!--boxCent-->
                <div class="qc-cent"><img src="<?php echo WEB_LINK . "/";?>images/qc-cent-1.jpg" /></div><!--qc-cent-->
            </div><!--centCont-->